﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wc_trab.aspx.cs" Inherits="Consultas_wc_trab" %>
<%@ Register Src="../wuc/wuc_Header.ascx" TagName="wuc_Header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Consulta de Trabajos</title>
    <link rel="stylesheet" href="../styles/a-main/a-main.css" type="text/css"/>
    <script language="javascript" src="../include/popcalendar.js"></script>
    <script language="javascript" src="../include/fecha.js"></script>
    <script language="javascript" src="../include/DD_roundies_0.0.1a.js"></script>
    <script language="javascript" src="../include/toolkit.js"></script>
    
    <script language="javascript">
    
    
    function LimpiarFiltros() {
        document.getElementById('txtMec').value="";
        document.getElementById('txtFecIni').value="";
        document.getElementById('txtFecFin').value="";
        document.getElementById('txtMatAvion').value="";
        document.getElementById('txtDescTrab').value="";
        document.getElementById('txtCodAta').value="";
        document.getElementById('txtCodSubAta').value="";    
        document.getElementById('txtTextoComponente').value="";
        document.getElementById('txtNumDif').value="";        
        document.getElementById('hid_CodComponente').value="";
    }
    
    
    function popUpSelPerson(ctrl,ctrl2,PerCargo)
    {
    var url = "../persona/wfAddPerson.aspx?ctrl="+ctrl2+"&ccar="+PerCargo;
    window.open(url,"per","width=980,height=720,status=yes");
    }
    function LimpiarText(strNombControl) {
    document.getElementById(strNombControl).value = "";
    }
    
    function LimpiarTextComponente(strNombControl) {
    document.getElementById(strNombControl).value = "";
    document.getElementById("hid_CodComponente").value = "";
    document.getElementById("txtCodAta").value = "";
    document.getElementById("txtCodSubAta").value = "";
    }    
    
    
    //DD_roundies.addRule('#divCriterios', 10);
    </script>
</head>

<body>
    <form id="form1" runat="server">
    <uc1:wuc_Header ID="Wuc_Header1" runat="server" />
    <div id="content">
<table width="100%" border="0" cellpadding="1" cellspacing="5">
    <tr>
        <td colspan="1" rowspan="2" valign="top">
        <table width="100%" cellspacing="2" cellpadding="0">
                                            <tr>
                                                <td class="CptWFMain">
                                                    Accesos Directos</td>
                                            </tr>
                                            <tr>
                                                <td class="Menu">
                                                <ul class="MenAccDirec">
                                <li><a href="../general/wfindex.aspx">Menu Principal</a></li>
                                <li><a href="../trabajo/wfPrgTrab.aspx">Programación de Trabajos</a></li>
                                <li><a href="../negociacion/wfNegociacion.aspx">Negociación</a></li>
                                <li><a href="../trabajo/wfRegInfTrab.aspx">Registro de Trabajos</a></li>
                                <li><a href="../Consultas/wfIndexConsultas.aspx">Consultas</a></li>
                                <li><a href="../Reportes/wfIndexRep.aspx">Reportes</a></li>
                                </ul>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 3px">
                                                </td>
                                            </tr>
                                        </table>
        </td>
    <td id="CptSTitPUp" colspan="5">Consulta de Trabajos</td>
    </tr>
  <tr>
    <td colspan="5" valign="top">
    
<table width="100%" border="0" bordercolor="#D5D5D5" cellpadding="0" cellspacing="0">
<tr>
  <td colspan="5">
  <div id="divCriterios" class="DivRound">
  <table width="840" border="0" cellspacing="2" cellpadding="3"> <!-- bordercolor="#ECECEC" -->
      <tr>
          <td colspan="7">
              <span class="lblCaption">Encargado: &nbsp;</span>
                  <asp:TextBox ID="txtMec" runat="server" CssClass="inTextData" ContentEditable="false" EnableViewState="False" Columns="50"></asp:TextBox>
                  <img id="imgSelParticipante" onclick="popUpSelPerson(this, 'txtMec', '40')" src="../styles/a-main/look.gif" />&nbsp;<img
                      id="ImgLimpiarMeca" onclick="javascript:LimpiarText('txtMec');" src="../styles/a-main/ico_nuevo.gif" />
                  <span class="lblCaption">Fecha de Inicio: </span>
                  <asp:TextBox ID="txtFecIni" runat="server" CssClass="inTextData" EnableViewState="False" onblur="valFecha(this)" Width="70px"></asp:TextBox>
                  <img src="../styles/cssmain/calendar.gif" border="0" onclick="popUpCalendar(this, txtFecIni, 'dd/mm/yyyy')" id="Img2" />
        <span class="lblCaption">Fecha de Fin:</span>
        <asp:TextBox ID="txtFecFin" runat="server" CssClass="inTextData" EnableViewState="False"
            onblur="valFecha(this)" Width="70px"></asp:TextBox>
        <img src="../styles/cssmain/calendar.gif" border="0" onclick="popUpCalendar(this, txtFecFin, 'dd/mm/yyyy')" id="Img4" /></td>
      </tr>
      <tr>
          <td colspan="7">
              <hr class="lin_sep" />
              &nbsp;</td>
      </tr>
      <tr>
          <td colspan="7">
            <span class="lblCaption">Avión:&nbsp; CC-<asp:TextBox ID="txtMatAvion" runat="server" CssClass="inTextData toUpper" Columns="8" MaxLength="5"></asp:TextBox>
                &nbsp; &nbsp;&nbsp;
            <span class="lblCaption">Origen:&nbsp;
                  <asp:DropDownList ID="ddlOrigen" runat="server" CssClass="sel" AutoPostBack="True" OnSelectedIndexChanged="ddlOrigen_SelectedIndexChanged">
            </asp:DropDownList>
                &nbsp; &nbsp;&nbsp; </span></span></td>
      </tr>
      <tr>
          <td colspan="7">
          <div id="divTipTra" runat="server" style="display:none;">
          <span class="lblCaption">Trabajo Realizado: &nbsp;</span><asp:DropDownList ID="ddlTrabRealizado" runat="server" CssClass="sel"></asp:DropDownList>
          <span class="lblCaption">Descripción del Trabajo:&nbsp;</span>
            <asp:TextBox ID="txtDescTrab" runat="server" Columns="100" CssClass="inTextData toUpper"></asp:TextBox>
          </div>
          <div id="divATASATA" runat="server" style="display:none;">
          <span class="lblCaption">Código ATA:&nbsp;</span>
                  <asp:TextBox ID="txtCodAta" runat="server" Columns="3" CssClass="inTextData toUpper"
                      MaxLength="2"></asp:TextBox>
            <asp:TextBox ID="txtCodSubAta" runat="server" Columns="3" CssClass="inTextData toUpper"
                MaxLength="2"></asp:TextBox>
                  &nbsp; &nbsp;&nbsp;
            <asp:ImageButton ID="imgBuscaComp" runat="server" ImageUrl="../styles/a-main/look.gif" OnClick="imgBuscaComp_Click" />
                  &nbsp;
                  <span class="lblCaption">Componente:&nbsp;</span>
            <asp:TextBox ID="txtTextoComponente" runat="server" ContentEditable="false" CssClass="inTextData toUpper" Columns="75"></asp:TextBox>&nbsp;<img
                      id="Img3" onclick="javascript:LimpiarTextComponente('txtTextoComponente');" src="../styles/a-main/ico_nuevo.gif" />
            <asp:TextBox ID="txtCodCompon" runat="server" Columns="3" CssClass="inTextData toUpper"
                MaxLength="2" Enabled="False" Visible="False">00</asp:TextBox>
                      <asp:HiddenField
                ID="hid_CodComponente" runat="server" />            
          </div>
          </td>
      </tr>
      <tr>
          <td colspan="7">
                  <span class="lblCaption">
                  Estado del Trabajo:&nbsp;
                              <asp:DropDownList ID="ddlEstadoTrab" runat="server" CssClass="sel">
                              </asp:DropDownList>
                      &nbsp;
                              <span class="lblCaption">Nro.Diferido:&nbsp;
                              <asp:TextBox ID="txtNumDif" runat="server" Columns="3" CssClass="inTextData toUpper"
                                  MaxLength="2"></asp:TextBox>
                                  &nbsp; &nbsp;&nbsp; <span class="lblCaption">Participación:&nbsp;
                              <asp:DropDownList ID="ddlParticip" runat="server" CssClass="sel">
                              </asp:DropDownList>
                                      &nbsp; &nbsp;&nbsp;
                              <span class="lblCaption">Área:&nbsp;
                              <asp:DropDownList ID="ddlArea" runat="server" CssClass="sel">
                              </asp:DropDownList>
                                  &nbsp; &nbsp; <span style="font-size: 9pt; color: #10459c; font-family: Arial">Prg:&nbsp;
                              <asp:DropDownList ID="ddlPrg" runat="server" CssClass="sel">
                              </asp:DropDownList></span></span></span></span></span></td>
      </tr>
<tr>
    <td align="center" colspan="7">
        &nbsp;
        &nbsp;<asp:ImageButton ID="imgConsultar" runat="server" ImageUrl="../styles/a-main/BTbuscar.gif" OnClick="imgConsultar_Click" />
        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <a href="javascript:LimpiarFiltros();"><img border="0" src="../styles/a-main/LimpiarFiltros.gif" /></a></td>
</tr>
    <tr>
        <td colspan="7"></td>
    </tr>
</table>
  </div>

      </td>
</tr>
    <tr>
        <td colspan="5">
            &nbsp;<asp:Label ID="lblMensaje" runat="server" CssClass="lblMensaje"></asp:Label></td>
    </tr>
<tr>
<td width="2%">
    <img border="0" src="../styles/a-main/Bullet485.gif" /></td>
<td colspan="4" style="height: 13px"><span class="sTit">Resultados Obtenidos</span></td>
    </tr>
    <tr>
    <td colspan="5" style="height: 167px">
      <table border="0" cellpadding="0" cellspacing="0" width="780"><tr>
<td align="left" style="width: 1%">
    </td>
            <td style="width: 25%" >
                </td>
          <td>
          </td>
          <td>
          </td>
          <td>
          </td>
          <td>
          </td>
          <td align="right">
              <asp:ImageButton ID="imgToExcel" runat="server" ImageUrl="../styles/a-main/excel.jpg" ToolTip="Refrescar Grid" OnClick="imgToExcel_Click"  />&nbsp;</td>
          <td align="right">
          </td>
          <td align="right">
          </td>
          <td align="right">
          </td>
          <td align="right">
              &nbsp;</td>
          <td align="right">
          </td>
          <td align="right">
          </td>
          <td align="right">
          </td>
      </tr>
          <tr>
              <td colspan="7">
                  <asp:GridView ID="gvTrab" runat="server" AutoGenerateColumns="False" BackColor="White"
                      BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="100%" EnableViewState="False" AllowPaging="True" OnPageIndexChanging="gvTrab_PageIndexChanging">
                      <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                      <Columns>
                          <asp:BoundField HeaderText="Fecha" DataField="StrFecInf" />
                          <asp:BoundField HeaderText="Avion" DataField="MatAvion" />
                          <asp:BoundField HeaderText="Trabajo" DataField="DescTrabajo" />
                          <asp:BoundField HeaderText="Prog" DataField="PyNP" />
                          <asp:BoundField HeaderText="ATA" DataField="CodATA" />
                          <asp:BoundField HeaderText="SubATA" DataField="CodSATA" />
                          <asp:BoundField HeaderText="Compon" DataField="CodCom" />
                          <asp:BoundField HeaderText="HH Real" DataField="HHReal" />
                          <asp:BoundField HeaderText="Encargado" DataField="EncarNombCompleto" />
                          <asp:BoundField HeaderText="Apoyo" DataField="DescTipoApoyo" />
                          <asp:BoundField HeaderText="TLeader" DataField="TLeaderNombCompleto" />
                          <asp:BoundField HeaderText="Superv" DataField="SupervNombCompleto" />
                          <asp:BoundField HeaderText="Acciones" DataField="Accion" />
                          <asp:BoundField HeaderText="Adjunto" />
                      </Columns>
                      <RowStyle BackColor="#EEEEEE" ForeColor="Black" CssClass="RowGrid" />
                      <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                      <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" CssClass="GVPage" />
                      <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" CssClass="titGrid" />
                      <AlternatingRowStyle BackColor="Gainsboro" />
                  </asp:GridView>
              </td>
              <td colspan="1">
              </td>
              <td colspan="1">
              </td>
              <td colspan="1">
              </td>
              <td colspan="1">
              </td>
              <td colspan="1">
              </td>
              <td colspan="1">
              </td>
              <td colspan="1">
              </td>
          </tr>
          <tr>
              <td style="width: 1%">
              </td>
              <td style="width: 25%">
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
              <td>
              </td>
          </tr>
      </table>
            </td>
</tr>
<tr>
    <td colspan="5">
        &nbsp;</td>
</tr>
</table>




    </td>
  </tr>
</table>



</div>
    </form>
</body>
</html>
